package com.yoki.loginview;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.AdapterView;
import android.widget.GridView;
import android.widget.ListView;
import android.widget.Toast;

import com.yoki.loginview.AdapterView.SpecialAdapter;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Set;

public class SettingActivity extends AppCompatActivity{

    ListView listView;
    String[] str;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);

        str = getResources().getStringArray(R.array.setting);

        listView = findViewById(R.id.ListView);
        listView.setOnItemClickListener(new AdapterView.OnItemClickListener() {
            @Override
            public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {
                if(i==0)
                {
                    Intent intent=new Intent(SettingActivity.this,SelfmessageActivity.class);
                    startActivity(intent);
                }
                else if(i==1)
                {
                    Intent intent=new Intent(SettingActivity.this,UserncActivity.class);
                    startActivity(intent);
                }
                else if(i==3)
                {
                    Intent intent=new Intent(SettingActivity.this,TellusActivity.class);
                    startActivity(intent);
                }
            }
        });
    }

}
